<?php if(isset($rows)) :?>

</br>
<ul data-role="listview" class"ui-li-icon" data-filter="true">
	
	<?php foreach($rows as $friend): if ($friend->isvalid):?>

	<li>
	<a href="<?=site_url('user_controller/show_user_profile');?>?userID=<?=$friend->userid?>" >
		
		<p><b><?=$friend->fullname?></b><?php echo " " . $friend->location; ?></p>
		<p><?=$friend->description?></p>
		
		<a
	href="<?=site_url('message_controller/leave_message?receiverID='.$friend->userid);?>"
	data-role="button">Message!</a>
		
	</a>
	</li>


<?php endif; endforeach;?>

</ul>

<?php else :?>
<!--<?php echo 'There is no hello now!';?>-->
<h4>You don't have friends now!</h4>
<?php endif; ?>